/**
 * 
 */
package com.jonosoft.photocast.viewer.web.client.ui;

import com.google.gwt.user.client.ui.Composite;
import com.jonosoft.photocast.viewer.web.client.LibraryImageMap;

/**
 * TODO Add description ImageBrowser (com.jonosoft.photocast.viewer.web.client.ImageBrowser)
 *
 * @author jon
 *
 */
public class ImageBrowser extends Composite {
	
	private LibraryImageMap libraryImageMap = null;
	private final ThumbnailsPanel thumbnailsPanel = new ThumbnailsPanel(null, 150, 150);
	
	public ImageBrowser() {
		initWidget(thumbnailsPanel);
	}
	
	public ImageBrowser(LibraryImageMap imageMap) {
		this();
		
		setImages(imageMap);
	}
	
	public void setImages(LibraryImageMap imageMap) {
		this.libraryImageMap = imageMap;
		thumbnailsPanel.setImages(imageMap);
		thumbnailsPanel.populateImageGrid();
	}
	
}
